package com.jye.rseven.user.mapper;

import com.jye.rseven.domain.Credit;
import com.jye.rseven.domain.CreditRecord;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CreditRecordMapper {

    //根据用户id查询积分记录
    List<CreditRecord> findMyCreditRecordByUserId(@Param("uId") int uId);

    //根据用户id查询用户上个月积分数
    CreditRecord findMyCreditRecord(@Param("uId") int uId);

    List<CreditRecord> findMyCreditRecordByUId(@Param("uId") int uId);

     //完成任务，获得佣金
    // void addCreditRecordByuId(@Param("uId") int uId,@Param("credit") int credit);
}
